from django.conf.urls.defaults import *
#from linktracker import views
# Uncomment this for admin:
#from django.contrib import admin

urlpatterns = patterns('',
    # Example:
    # (r'^linkdump/', include('linkdump.foo.urls')),

    # Uncomment this for admin docs:
    #(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment this for admin:
#    ('^admin/(.*)', admin.site.root),
#    (r'^links/$', 'linkdump.linktracker.views.list'),
    (r'^links/$', 'linktracker.views.list'),
    (r'^links/(?P<page>\d+)', 'linktracker.views.list'),
    (r'^links/new', 'linktracker.views.new'),
    (r'^links/add', 'linktracker.views.add'),
    (r'^links/edit/(?P<key>\w+)', 'linktracker.views.edit'),
    (r'^links/update/(?P<key>\w+)', 'linktracker.views.update'),
    (r'^links/delete/(?P<key>\w+)', 'linktracker.views.delete'),
    
    (r'^post/add/$', 'blog.views.add_post'),
    (r'^$', 'blog.views.list_post'),
)
